home *** CD-ROM | disk | FTP | other *** search
- From: "Charles F. McDevitt" <Chuck.McDevitt@elsegundoca.attgis.com>
- Message-ID: <3112531A.3410@ElSegundoCA.ATTGIS.COM>
- X-Original-Date: Fri, 02 Feb 1996 10:08:26 -0800
- Path: in2.uu.net!bounce-back
- Date: 03 Feb 96 03:45:03 GMT
- Approved: fjh@cs.mu.oz.au
- Newsgroups: comp.std.c++
- Subject: Re: #ifdef XXXX
- Organization: AT&T Global Information Solutions, San Diego, CA
- References: <1996Feb1.092058.4745@iiasa.ac.at>
- X-Mailer: Mozilla 2.0b6a (WinNT; I)
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMRLaTuEDnX0m9pzZAQE4rQF9HEXOzk/H1TFTxI7JmMcMwvhBvoqGhHh3
- AcWYjzdQ18KjQbYNTptBWY1la+Iw3mXc
- =R4k/
-
- Marek MAKOWSKI wrote:
- >
- > Would not it be sensible to add to the preprocessing a directive
- > that would stop processing the current file ? Something like
- >
- > #ifdef XXXX
- > #exit
- >
- > this would safe processing (sometimes very long) file in the common
- > situations:
- >
- > #ifdef XXXX
- > // a (possibly) long header file hear
- > #endif /* ifdef XXXX*/
- >
-
- Wouldn't it be better to update the C++ standard so the
- default is that include files only get included once, and the
- compiler/preprocessor keeps track of which ones it's already
- seen. Then we wouldn't have to mess with these ugly #ifdefs
- to make include files only be included once.
- ---
- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
- Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
- is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
-